package cn.iocoder.yudao.module.question.convert.questionitem;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.iocoder.yudao.module.question.controller.admin.questionitem.vo.*;
import cn.iocoder.yudao.module.question.dal.dataobject.questionitem.QuestionItemDO;

/**
 * 试题选项信息 Convert
 *
 * @author MJ
 */
@Mapper
public interface QuestionItemConvert {

    QuestionItemConvert INSTANCE = Mappers.getMapper(QuestionItemConvert.class);

    QuestionItemDO convert(QuestionItemCreateReqVO bean);

    QuestionItemDO convert(QuestionItemUpdateReqVO bean);

    QuestionItemRespVO convert(QuestionItemDO bean);

    List<QuestionItemRespVO> convertList(List<QuestionItemDO> list);

    PageResult<QuestionItemRespVO> convertPage(PageResult<QuestionItemDO> page);

    List<QuestionItemExcelVO> convertList02(List<QuestionItemDO> list);

}
